<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			body {
				perspective: 300px;
			}
			
			div {
				width: 200px;
				margin: 100px auto;
				transition: all 2s;
			}
			
			div img {
				width: 100%;
			}
		
			div:hover {
				transform: rotateY(180deg);		
			}
		</style>
		
	</head>
	<body>
		<!-- 沿着y轴旋转的左手法则:左手大拇指指向y轴正方向 其余手指弯曲的方向就是元素旋转的正方向 -->
		<div>
			<img src="../images/pig.jpg" alt="">
		</div>
	</body>
</html>
